/*
 * PullDownForKey.java
 *
 * Created on 6 mai 2007, 00:04
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package courselog;

import ewe.ui.KeyEvent;
import ewe.ui.Menu;
import ewe.ui.PullDownMenu;

/**
 *
 * @author rigal
 */
public class PullDownForKey extends PullDownMenu {
    
    ActionKeysDispatcher adpM;
    
    /** Creates a new instance of PullDownForKey */
    public PullDownForKey(String title, Menu m) {
        super(title,m);
        setBorder(BDR_OUTLINE|BF_RECT,1);
    }
    
    public void setActionKeyListener(ActionKeysDispatcher adp) {
        adpM=adp;
    }

    public void onKeyEvent(KeyEvent ev) {
        adpM.onEvent(ev);
        super.onKeyEvent(ev);
    }
}
